package clothes.tools.service.impl;

import clothes.tools.dao.SellDao;
import clothes.tools.dao.impl.SellDaoImpl;
import clothes.tools.pojo.Sell;
import clothes.tools.service.SellService;

import java.util.List;

public class SellServiceImpl implements SellService {
    private SellDao sellDao=new SellDaoImpl();
    @Override
    public void addSell(Sell sell) {
        sellDao.addSell(sell);
    }

    @Override
    public void deleteSellById(Integer id) {
        sellDao.deleteSellById(id);
    }

    @Override
    public void updateSell(Sell sell) {
        sellDao.updateSell(sell);
    }

    @Override
    public Sell querySellById(Integer id) {
        return sellDao.querySellById(id);
    }

    @Override
    public List<Sell> querySell() {
        return sellDao.querySell();
    }

    @Override
    public List<Sell> querySell(String page, String limit) {
        return sellDao.querySell(page, limit);
    }

    @Override
    public List<Sell> querySelectSell(String page, String limit,String name) {
        return sellDao.querySelectSell(page, limit, name);
    }
}
